﻿namespace PMS.Client.DataService
{
    using PMS.Model;
    using System;
    using System.CodeDom.Compiler;
    using System.Diagnostics;
    using System.ServiceModel;
    using System.ServiceModel.Channels;

    [GeneratedCode("System.ServiceModel", "4.0.0.0"), DebuggerStepThrough]
    public class DataServiceClient : ClientBase<IDataService>, IDataService
    {
        public DataServiceClient()
        {
        }

        public DataServiceClient(string endpointConfigurationName) : base(endpointConfigurationName)
        {
        }

        public DataServiceClient(Binding binding, EndpointAddress remoteAddress) : base(binding, remoteAddress)
        {
        }

        public DataServiceClient(string endpointConfigurationName, EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress)
        {
        }

        public DataServiceClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress)
        {
        }

        public byte[] DownloadFile(string requestFileName)
        {
            return base.Channel.DownloadFile(requestFileName);
        }

        public string DoWork()
        {
            return base.Channel.DoWork();
        }

        public Update GetVersion()
        {
            return base.Channel.GetVersion();
        }

        public bool UploadFile(string fileName, byte[] fileData)
        {
            return base.Channel.UploadFile(fileName, fileData);
        }
    }
}

